package com.jl.smartcard.ui.views.cmds;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;


public class CMDsGroup {
	private static Map<String, Group> groups = new HashMap<String, Group>();
	
	
	public static void registe(String id,Group group){
		if(!groups.containsKey(id)){
			groups.put(id, group);
		}
	}
	
	public static Group getGroup(String id){
		return groups.get(id);
	}
	
	public static Iterator<String> iteratorID(){
		return groups.keySet().iterator();
	}
	
	public static String search(String id,String key){
		Group g = groups.get(id);
		return g.get(key);
	}
	
}
